from google.appengine.ext import db
from google.appengine.ext import search  

##################################################################################
#                                                                                #
#                       Models                                                   #
#                                                                                #
##################################################################################



class Language(search.SearchableModel):
  name = db.StringProperty(default = '')
  url = db.StringProperty(default = '')



class TermType(search.SearchableModel):
  name = db.StringProperty(default = '')
  url = db.StringProperty(default = '')
  
  
 
class Term(search.SearchableModel):
  word = db.StringProperty(default = '')
  url = db.StringProperty(default = '')
  translate = db.StringProperty(default = '')
  language = db.ReferenceProperty(Language)
  termtype = db.ReferenceProperty(TermType)



